package pers.xiaojun.boot.module.system.dao.entity.permission;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import pers.xiaojun.boot.mybatis.core.enitiy.BaseEntity;
import pers.xiaojun.boot.tenant.core.db.TenantBaseEntity;

/**
 * 用户角色实体类
 *
 * @author xiaojun
 * @since 2025-10-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("system_user_role")
@Accessors(chain = true)
public class UserRoleDO extends TenantBaseEntity {

    /**
     * 自增主键
     */
    @TableId
    private Long id;
    /**
     * 用户 ID
     */
    private Long userId;
    /**
     * 角色 ID
     */
    private Long roleId;

}
